import { ElLoading } from 'element-plus'

let loading
/** 展示loading遮罩 */
export const showLoading = () => {
  loading = ElLoading.service({
    lock: true,
    text: 'Loading',
    background: 'rgba(0, 0, 0, 0.7)',
  })
}
/** 关闭 loading 遮罩 */
export const closeLoading = () => loading.close()
